package com.example.spring.service.impl;

import com.example.spring.dao.UserDao;
import com.example.spring.model.User;
import com.example.spring.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServicelmpl implements UserService {
    @Resource
    private UserDao userDao;
    @Override
    public int addUser(User user){
        return userDao.addUser(user);
    }
}
